package com.bdzl.ecs.servicefeign;

import com.bdzl.ecs.config.FeignConfig;
import com.bdzl.pub.util.param.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;
@FeignClient(name="loanBiz", configuration = FeignConfig.class,contextId = "OrderService",url = "${feign.sys}:8003")
public interface OrderFeignService {

    /**
     * @Description: TODO 签完授权书之后
     * @param odrNo 订单号
     * @return: com.bdzl.pub.util.param.R
     * @Author: Ming
     * @Date: 2021/5/26 17:09
     */
    @ResponseBody
    @PostMapping("/bdzl/order/powerOfAttorney")
    @Transactional
    public R powerOfAttorney(@RequestBody Map<String, Object> params);

}
